<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<script type="text/javascript" src="scripts/boot.js"></script>
	<style type="text/css">
	    html, body{
	        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
	    }    
    </style>
</head>
<body>
   	<input class="mini-hidden" id="orders_id"/>
   	<input class="mini-hidden" id="list_type"/>
  	<input class="mini-hidden" id="customer_id"/>
  	<input class="mini-hidden" id="serial_num"/>
	<div id="tabs1" class="mini-tabs" activeIndex="0" style="width:100%; height:100%;" plain="false" ontabload="tabload">
	    <div title="订单信息" url="audit_orders_detail.do?id=<s:property value='id'/>" refreshOnClick="true" iconCls="icon-tip">
	    </div>
	    <div title="客户信息" url="audit_customer_detail.do" refreshOnClick="true">
	    </div>
	    <div title="跟踪信息" url="platform_trace_detail_init.do" refreshOnClick="true">
	    </div>
	</div>
</body>
</html>

<script type="text/javascript">
	mini.parse();
	
	var ordersId = mini.get("orders_id");
	var customerId = mini.get("customer_id");
	var serialNum = mini.get("serial_num");
	var listType = mini.get("list_type");
	function SetData(data) {
		 // 跨页面传递的数据对象，克隆后才可以安全使用
		data = mini.clone(data);
		ordersId.setValue(data.row.id);
		serialNum.setValue(data.row.serialNum);
		listType.setValue(data.type);
	}
	
	top["win"] = window;
	function setCid(cId){
	    customerId.setValue(cId);
	}
	
	function closeTabs(status) {
		window.CloseOwnerWindow(status);
	}
	
	// 将订单id传到订单信息页面
	function tabload(e) {
		var data = {id: ordersId.getValue(), cId: customerId.getValue(), serialNum: serialNum.getValue(), type: listType.getValue()}; 
		var iframe = this.getTabIFrameEl(e.tab);
	    iframe.contentWindow.SetData(data);
	}
</script>